package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.GuiGePrice;
import com.yunshang.shoppingmall.mapper.GuiGePriceMapper;
import com.yunshang.shoppingmall.service.GuiGePriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("guiGePriceService")
public class GuiGePriceServiceImpl implements GuiGePriceService {
    @Autowired
    GuiGePriceMapper guiGePriceMapper;

    @Override
    public int insert(GuiGePrice record) {
        return guiGePriceMapper.insert(record);
    }

    @Override
    public int insertSelective(GuiGePrice record) {
        return guiGePriceMapper.insertSelective(record);
    }

    @Override
    public List<GuiGePrice> selectGuiGePriceByProId(int productId) {
        return guiGePriceMapper.selectGuiGePriceByProId(productId);
    }

    @Override
    public int selectCount() {
        return guiGePriceMapper.selectCount();
    }

    @Override
    public int editorGuiGePrice(int guigeId) {
        return guiGePriceMapper.editorGuiGePrice(guigeId);
    }

    @Override
    public GuiGePrice selectGuiGePriceByguigeId(int gugieId) {
        return guiGePriceMapper.selectGuiGePriceByguigeId(gugieId);
    }


}
